package com.qzxy.premiumhotelsystem.domain.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Author: iQNRen
 * @Description: 评论视图类
 * @Date: 2024/9/19 10:45 周四
 * @Version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "CommentVo")
public class CommentVo implements Serializable {

    private Long commentId;

    private Integer guestId;

    private String nickName;
    private String imgUrl;

    private Integer roomId;
    private Integer roomNumber;
    private Integer roomTypeId;

    private Long parentId;

    private String comment;

    private Date createTime;


    private List<CommentVo> replies;

    public CommentVo(Long commentId, Integer guestId, String nickName, String imgUrl, Integer roomId, Integer roomNumber, Long parentId, String comment, Date createTime) {
        this.commentId = commentId;
        this.guestId = guestId;
        this.nickName = nickName;
        this.imgUrl = imgUrl;
        this.roomId = roomId;
        this.roomNumber = roomNumber;
        this.parentId = parentId;
        this.comment = comment;
        this.createTime = createTime;
    }
}

